physics_particle_group_get_inertia

Get the inertia of a whole group of particles.

语法:

physics_particle_group_get_inertia(group)


参数 描述
group The particle group to get.


返回: Real(实数)


描述

With this function you can retrieve the inertia of an entire group of particles. The group value is that which was returned when you created the group of particles using the function physics_particle_group_end, and the function will return a value which is the combined value of the currently set flags.


例如:

i = physics_particle_group_get_inertia(group1);

The above code will get the inertia of the particle group indexed in the variable "group1" and store it in a variable.


上一页: Soft Body Particles
下一页: physics_particle_group_get_centre_x
© Copyright YoYo Games Ltd. 2018 All Rights Reserved